package org.codeforseattle.teacherdepot.util;

import com.google.appengine.repackaged.org.json.JSONObject;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author hrovira
 */
public class HttpIO {
    public static void outJson(HttpServletResponse resp, JSONObject json) throws IOException {
        resp.setContentType("application/json");
        resp.getWriter().write(json.toString());
    }

}
